/*
==========================================================
Piece Class CPP
DevX Team
==========================================================
*/

#include "piece.h"

/*
==========================================================
Piece Constructor
Description: initilize piece properties
==========================================================
*/
dxPiece::dxPiece()
{
	this->pieceType=ROOK;
	this->currentPlayer=WHITE;
	this->piecePosition.x = 0;
	this->piecePosition.y = 0;
}

/*
==========================================================
Piece Destructor
==========================================================
*/
dxPiece::~dxPiece()
{
}

/*
==========================================================
Piece Move
Description: Check if the piece move is valid or not
==========================================================
*/
bool dxPiece::CheckMove(int toX,int toY)
{
	return true;
}

/*
==========================================================
Get Player Value
Description: Return the current player
==========================================================
*/
player_t dxPiece::CurrentPlayer()
{
	return this->currentPlayer;
}

/*
==========================================================
Return Piece type
Description: Return the piece type value
==========================================================
*/
pieceType_t dxPiece::GetType()
{
	return this->pieceType;
}

/*
==========================================================
Draw Function
Description: Draw the piece on the screen
==========================================================
*/
void dxPiece::Draw(int x, int y)
{
}

/*
==========================================================
Get Piece Pisition
Description: Return the piece position value
==========================================================
*/
piecePos_t dxPiece::GetPosition()
{
	return this->piecePosition;
};